<style>
html, body, ul, li, ol, dl, dd, dt, p, h1, h2, h3, h4, h5, h6, form, fieldset, legend, img {margin: 0;padding: 0;}
body{font:14px/24px "SimSun","宋体","Arial Narrow",HELVETICA;color:#FFFFFF}
a { color:#FFFFFF; text-decoration:none; }
a:visited { color:#FFFFFF; }
a:hover, a:active, a:focus { color:#FF0027; text-decoration:underline; }
ul, ol {list-style: none outside none;}
.clearfix:after { content:"."; display:block; height:0; visibility:hidden; clear:both; }
.clearfix{ zoom:1; }
*html .clearfix { height: 1%; }

/*登陆窗口*/
.loginbox{width:317px;height:370px;float:left;background:url(../images/bg_loginbox.jpg) left top no-repeat;background-color:#17689D}
.login{width:100%;float:left;}
.login li{float:left;padding:5px 10px;width:297px;}
.loginuser,.loginpwd{width:295px;height:38px;line-height:38px;float:left;border:0px;font-size:20px;font-family:verdana,"microsoft yahei";text-indent:6px}
.loginuser{background:url(../statics/11m/images/bg_username.jpg) left center no-repeat;}
.loginpwd{background:url(../statics/11m/images/bg_password.jpg) left center no-repeat;}
.sign_in,.sign_up{width:95px;height:35px;float:left;border:0px;}
.sign_in{background:url(../statics/11m/images/btn_login.jpg) left center no-repeat;margin-left:56px}
.sign_up{background:url(../statics/11m/images/btn_register.jpg) left center no-repeat;margin-left:10px}

.signinbox{width:76%;margin:0px auto;margin-top:34px}
.logined{width:134px;float:left;margin-left:10px}
.avatar{width:90px;height: 90px;float:left}
</style>
<body style="background-color:transparent">
{if $_username}
<div class="signinbox clearfix">
    <div class="avatar">
        <script type="text/javascript" src="{SKIN_PATH}js/glossy.js"></script>
        <a title="{L('modify').L('avatar')}" target="_top" href="index.php?m=member&c=index&a=account_manage_avatar&t=1"><img src="{$avatar[90]}" class="glossy" width="90" height="90" onerror="this.src='{$phpsso_api_url}/statics/images/member/nophoto.gif'"></a>
    </div>
    <ul class="logined">
        <li>{L('hellow')}，<a href="{APP_PATH}index.php?m=member&siteid={$siteid}" target="_top">{get_nickname()}</a>&nbsp;<a href="{APP_PATH}index.php?m=member&c=index&a=logout&forward={urlencode($_GET['forward'])}&siteid={$siteid}" target="_top">退出</a></li>
        <li>余额：<?php print_r($siteid);?><font style="color:#fff600; font-size:14px;font-family:microsoft yahei;font-weight:bold;">{$amount}</font> {L('unit_yuan')}</li>
        <li>积分：<font style="color:#fff600; font-size:14px;font-family:microsoft yahei;font-weight: bold">{$point}</font> 点</li>
        <li><a href="{APP_PATH}index.php?m=member&c=index&a=account_manage_info&siteid={$siteid}" target="_top">修改资料</a> | <a href="{APP_PATH}index.php?m=pay&c=deposit&a=pay" target="_top">在线充值</a></li>
    </ul>
</div>

{else}
    <form action="/index.php?m=member&c=index&a=login" target="_top" method="post">
        <ul class="login">
            <li style="padding-top:10px"><input type="text" name="username" id="username" class="loginuser" /></li>
            <li><input type="password" name="password" id="userpwd" class="loginpwd" style="margin-top:0px" /></li>
            <li style="text-align:center"><input type="submit" name="dosubmit" id="sign_in" class="sign_in" value="" /><input type="button" name="sign_up" id="sign_up" class="sign_up" value="" onclick="window.open('{APP_PATH}index.php?m=member&c=index&a=register&siteid={$siteid}','_top')"/></li>
        </ul>
    </form>
{/if}
</body>